﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="infovalue.aspx.cs" Inherits="system_infovalue" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>划分信息分类</title>
    <link href="../css/ecrm03.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/Function.js"></script>
    <script type="text/javascript" src="../js/myCheck.js"></script>
    <script type="text/javascript" language="javascript">
        function chk()
        {
			if(CheckText(form1.infoid,"信息编号",15)==false) return false;
			if(CheckText(form1.infoname,"信息名称",30)==false) return false;
			if(CheckNum(form1.orderby,"显示顺序")==false) return false;
            
			return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="900" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td>
                    <div id="nav"><a class="now" href="../index.aspx"><span>首页</span></a></div>
                    <div class="clear"></div><div id="status"><div id="subnav"></div><span class="pl">&nbsp;</span></div><br />
                    <div><h1><asp:Literal ID="typename" runat="server"></asp:Literal>(<asp:Literal ID="typeid" runat="server"></asp:Literal>)信息分类</h1></div>
                    <p style="margin-left: 20px;">
                        <table border="0" cellpadding="0" cellspacing="0" width="80%">
                            <tr>
                                <td colspan="2" style="border-bottom: darkgray 1px dashed;"></td>
                            </tr>
                            <tr>
                                <td valign="top" width="280">
					                <asp:datalist id="dlRS" runat="server" Width="98%" OnItemCommand="dlRS_ItemCommand">
                                        <AlternatingItemStyle BackColor="White" />
                                        <ItemStyle BackColor="WhiteSmoke" />
							            <HeaderTemplate>
							            </HeaderTemplate>
							            <ItemTemplate>
								            <table cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
								                <TR height=26>
									                <TD align="left" width="60"><%#  DataBinder.Eval(Container.DataItem, "infoid") %></TD>
									                <TD align="left"><asp:linkbutton id="lbModify" runat="server" CommandName="modify" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "infoid") %>'><%#  DataBinder.Eval(Container.DataItem, "infoname") %></asp:linkbutton></TD>
									                <TD align="center" width="40"><asp:linkbutton id="lbRemove" runat="server" CommandName="remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "infoid") %>'><span onClick="javascript:{return confirm('删除操作不可恢复，确认吗？');}">删除</span></asp:linkbutton></TD>
								                </TR>
		                                    </table>
							            </ItemTemplate>
							            <FooterTemplate>
		                                </FooterTemplate>
		                            </asp:datalist>
                                </td>
                                <td style="border-left: darkgray 1px dashed;" valign="top">
                                    <table border="0" cellpadding="2" cellspacing="2">
                                        <tr>
                                            <td>信息编号</td><td><asp:TextBox ID="infoid" runat="server"></asp:TextBox><span style="color: #ff0000">(<asp:Literal ID="msg" runat="server" Text="*"></asp:Literal>)</span></td>
                                        </tr>
                                        <tr>
                                            <td>信息名称</td><td><asp:TextBox ID="infoname" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>显示顺序</td><td><asp:TextBox ID="orderby" runat="server">0.00</asp:TextBox>(数字)</td>
                                        </tr>
                                        <tr>
                                            <td>是否隐藏</td><td><asp:CheckBox ID="isshow" runat="server" Checked="True" /></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center"><asp:Button ID="btnNew" runat="server" Text="新增信息" OnClick="btnNew_Click" /><asp:Button ID="btnEdit" runat="server" Text="保存修改" OnClick="btnEdit_Click" /><asp:Button ID="Button1" runat="server" Text="返回" OnClick="Button1_Click" /></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </p>
                    <br />
                    <div style="border-bottom: darkgray 1px dashed;"></div>
                    <span class="bottomfont">&copy;EasyCRM 2008-2009 汽车中国</span>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
